from selenium.webdriver.common.by import By
import time
from selenium import webdriver

dirver=webdriver.Edge()
dirver.get('https://www.jiuxian.com/')
time.sleep(2)
dirver.find_element(By.CLASS_NAME,'headerLogin').click()
time.sleep(2)
dirver.find_element(By.XPATH,'//*[@id="loginform"]/div/div/div/div/div[1]/div[4]/div/a[1]/i').click()
time.sleep(2)
dirver.switch_to.frame(dirver.find_element(By.ID,'ptlogin_iframe'))
time.sleep(2)
dirver.find_element(By.ID,'switcher_plogin').click()
time.sleep(2)
dirver.find_element(By.ID,'u').send_keys('123456')
time.sleep(2)
dirver.find_element(By.ID,'p').send_keys('123')
time.sleep(7)
